package com.design.mode.obsever;

import java.util.Observable;
import java.util.Observer;

/**
 * 观察者，当被观察者BeingWatched 发生变化的时候 更新
 * 
 * @author Administrator
 * 
 */
class Watcher implements Observer {
	public void update(Observable obj, Object arg) {//
		System.out.println("update() called, count is "
				+ ((Integer) arg).intValue());//
	}
}
